<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Chapter 4 - Recipe 4.1</title>
<link rel="stylesheet" href="style.css" type="text/css">
<script src="jquery-latest.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('#terms').hide();
        $('a.showTerms').click(function () {
            $('#terms').slideDown();
            $(this).parent().hide('default');
            return false;
        });
    });
</script>
</head>
<body id="compo">
    <div id="content">
        <h1>Enter our competition!</h1>
        <p><a class="showTerms" href="#terms">By entering you're agreeing to the terms</a></p>
        <fieldset>
            <legend>Enter your email to win</legend>
            <label for="email">Email</label> <input type="text" name="email" value="" id="email">
            <input type="submit" value="Enter me!">
        </fieldset>
        
        <div id="terms">
            <h2>Terms &amp; Conditions</h2>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
        </div>
    </div>
</body>
</html>